package com.ygo.feihua.fragment;
import android.os.*;
import android.support.v4.app.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;
import com.ygo.feihua.*;

public class FragmentZsName extends Fragment
{

	EditText fz_name,fz_js;
	Gongju gj;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
	{
		View v=inflater.inflate(R.layout.fragment_zs_name,null);
		
		fz_name=(EditText) v.findViewById(R.id.fz_name);
		fz_js=(EditText) v.findViewById(R.id.fz_name);
		
		gj=Gongju.getdx(getActivity());
		
		final ZhutiShangchuan zs=(ZhutiShangchuan) getActivity();
		Button zs_next=zs.sc_sc;
		zs_next.setText("下一步");
		zs_next.setOnClickListener(new OnClickListener(){

				@Override
				public void onClick(View p1)
				{
					String name,js;
					name=fz_name.getText().toString().trim();
					js=fz_js.getText().toString().trim();
					
					if(name.equals("")||js.equals("")){
						
						gj.show("信息未填完整");
					}else{
						zs.zt_name=name;
						zs.zt_js=js;
						zs.fragmentManager.beginTransaction().replace(R.id.sc_frage, new FragmentZsTubiao()).commit();
						
					}
					
					
					
					// TODO: Implement this method
				}
			});
		
		// TODO: Implement this method
		return v;
	}
	
}
